//
//  ESTDTextAndPicCell.m
//  Eyeshot
//
//  Created by lanou3g on 15/7/10.
//  Copyright (c) 2015年 eyeshot. All rights reserved.
//TDTestAnd代表TagsDetailTextAndPicture(左边是文字右边是图片) type = 51

#import "ESTDTextAndPicCell.h"
#import "UIImageView+WebCache.h"
@implementation ESTDTextAndPicCell

- (void)setListModel:(ESListModel *)listModel{
    [_headerImageView sd_setImageWithURL:[NSURL URLWithString:listModel.header]];
    [_namelabelBT setTitle:listModel.name forState:UIControlStateNormal];
    _create_timeLabel.text = listModel.create_time;
    _titleLabel.text = listModel.richtxt[@"title"];
    _descLabel.text = listModel.richtxt[@"desc"];
    [_imageView_smal sd_setImageWithURL:[NSURL URLWithString:listModel.richtxt[@"img_url"]]];
    [_dingBT setTitle:listModel.ding forState:UIControlStateNormal];
    [_caiBT setTitle:listModel.cai forState:UIControlStateNormal];
    [_repostBT setTitle:listModel.repost forState:UIControlStateNormal];
    [_commentBT setTitle:listModel.comment_num forState:UIControlStateNormal];
}

@end
